package tech.lixinlei.java.timestamp;

public class TimestampDemo {

    public static void main(String[] args) {
        String timestamp = String.valueOf(System.currentTimeMillis());
        System.out.println(timestamp);

        String secondStamp = timestamp.substring(0, timestamp.length() - 3);
        System.out.println(secondStamp);

        Integer i = Integer.valueOf(secondStamp);
        System.out.println(i);

        System.out.println(Integer.MAX_VALUE);
    }

}
